package Mangos::DB::Realmd::AccountBanned;

use strict;

use base qw(Mangos::DB::Realmd);

__PACKAGE__->meta->setup
(
    table   => 'account_banned',

    columns => 
    [
        id        => { type => 'integer', not_null => 1 },
        bandate   => { type => 'bigint', not_null => 1 },
        unbandate => { type => 'bigint', default => '0', not_null => 1 },
        bannedby  => { type => 'varchar', length => 50, not_null => 1 },
        banreason => { type => 'varchar', length => 255, not_null => 1 },
        active    => { type => 'integer', default => 1, not_null => 1 },
    ],

    primary_key_columns => [ 'id', 'bandate' ],
);

1;

package Mangos::DB::Realmd::AccountBanned::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Realmd::AccountBanned' }

__PACKAGE__->make_manager_methods('account_banned');

1;
